package com.yiren.backstage.currency.entity;

import com.yiren.backstage.currency.bean.PointBean;
import com.yiren.backstage.currency.bean.PointExBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;
import java.util.List;

/**
 * @author lwb
 * @date :2021/12/23 14:48
 * @description: 车辆模型
 */
@Entity(nameInDb = "car_model", createInDb = false)
public class CarModelEntity implements Serializable {

    private static final long serialVersionUID = -7365537890458665468L;

    /***车辆模型ID*/
    @Id
    private String id;

    /***车辆名字*/
    private String name;

    /***天线类型*/
    private int antennaType;

    /***摆放位置*/
    private int positioned;

    /***用户Id*/
    private int userId;

    /***版本号*/
    private float carModelVer;

    /***使用范围*/
    private int useRange;

    /***更新详情*/
    private String updateDetails;

    /***更新模式*/
    private int updateMode;

    /***发布时间*/
    private long publishTime;

    /***状态*/
    private int state;

    /***天线高度*/
    private float antennaHeight;

    /***天线俯仰角*/
    private double antennaAnglepitch;

    /*** 定向天线摆放 */
    private String antennaDirection;

    /***定向天线摆放值*/
    private float antennaDirectionValue;

    /*** 定位天线摆放 */
    private String antennaPosition;

    /***定位天线摆放值*/
    private float antennaPositionValue;

    /*** 车辆模型点位 */
    private String points;

    /**是否可更新*/
    @Transient
    private boolean isUpdate;

    @Transient
    private List<PointExBean> carModelPoints;

    /**是否下载*/
    @Transient
    private boolean isDownLoad;

    /**是否官方*/
    @Transient
    private boolean isOfficial;

    /**最新版本*/
    @Transient
    private float carModelVerLast;

    @Generated(hash = 1697544535)
    public CarModelEntity(String id, String name, int antennaType, int positioned,
            int userId, float carModelVer, int useRange, String updateDetails,
            int updateMode, long publishTime, int state, float antennaHeight,
            double antennaAnglepitch, String antennaDirection,
            float antennaDirectionValue, String antennaPosition,
            float antennaPositionValue, String points) {
        this.id = id;
        this.name = name;
        this.antennaType = antennaType;
        this.positioned = positioned;
        this.userId = userId;
        this.carModelVer = carModelVer;
        this.useRange = useRange;
        this.updateDetails = updateDetails;
        this.updateMode = updateMode;
        this.publishTime = publishTime;
        this.state = state;
        this.antennaHeight = antennaHeight;
        this.antennaAnglepitch = antennaAnglepitch;
        this.antennaDirection = antennaDirection;
        this.antennaDirectionValue = antennaDirectionValue;
        this.antennaPosition = antennaPosition;
        this.antennaPositionValue = antennaPositionValue;
        this.points = points;
    }

    @Generated(hash = 447186662)
    public CarModelEntity() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAntennaType() {
        return this.antennaType;
    }

    public void setAntennaType(int antennaType) {
        this.antennaType = antennaType;
    }

    public int getPositioned() {
        return this.positioned;
    }

    public void setPositioned(int positioned) {
        this.positioned = positioned;
    }

    public int getUserId() {
        return this.userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public float getCarModelVer() {
        return this.carModelVer;
    }

    public void setCarModelVer(float carModelVer) {
        this.carModelVer = carModelVer;
    }

    public int getUseRange() {
        return this.useRange;
    }

    public void setUseRange(int useRange) {
        this.useRange = useRange;
    }

    public String getUpdateDetails() {
        return this.updateDetails;
    }

    public void setUpdateDetails(String updateDetails) {
        this.updateDetails = updateDetails;
    }

    public int getUpdateMode() {
        return this.updateMode;
    }

    public void setUpdateMode(int updateMode) {
        this.updateMode = updateMode;
    }

    public long getPublishTime() {
        return this.publishTime;
    }

    public void setPublishTime(long publishTime) {
        this.publishTime = publishTime;
    }

    public int getState() {
        return this.state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public float getAntennaHeight() {
        return this.antennaHeight;
    }

    public void setAntennaHeight(float antennaHeight) {
        this.antennaHeight = antennaHeight;
    }

    public double getAntennaAnglepitch() {
        return this.antennaAnglepitch;
    }

    public void setAntennaAnglepitch(double antennaAnglepitch) {
        this.antennaAnglepitch = antennaAnglepitch;
    }

    public String getAntennaDirection() {
        return this.antennaDirection;
    }

    public void setAntennaDirection(String antennaDirection) {
        this.antennaDirection = antennaDirection;
    }

    public float getAntennaDirectionValue() {
        return this.antennaDirectionValue;
    }

    public void setAntennaDirectionValue(float antennaDirectionValue) {
        this.antennaDirectionValue = antennaDirectionValue;
    }

    public String getAntennaPosition() {
        return this.antennaPosition;
    }

    public void setAntennaPosition(String antennaPosition) {
        this.antennaPosition = antennaPosition;
    }

    public float getAntennaPositionValue() {
        return this.antennaPositionValue;
    }

    public void setAntennaPositionValue(float antennaPositionValue) {
        this.antennaPositionValue = antennaPositionValue;
    }

    public String getPoints() {
        return this.points;
    }

    public void setPoints(String points) {
        this.points = points;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean update) {
        isUpdate = update;
    }

    public List<PointExBean> getCarModelPoints() {
        return carModelPoints;
    }

    public void setCarModelPoints(List<PointExBean> carModelPoints) {
        this.carModelPoints = carModelPoints;
    }

    public boolean isDownLoad() {
        return isDownLoad;
    }

    public void setDownLoad(boolean downLoad) {
        isDownLoad = downLoad;
    }

    public boolean isOfficial() {
        return isOfficial;
    }

    public void setOfficial(boolean official) {
        isOfficial = official;
    }

    public float getCarModelVerLast() {
        return carModelVerLast;
    }

    public void setCarModelVerLast(float carModelVerLast) {
        this.carModelVerLast = carModelVerLast;
    }
}